import { useMatches } from "react-router-dom"
function Mian(){
    let matches=useMatches()
    let crumbs=matches.filter(item=> item.handle.title).map(item=>item.handle.title).join('>')
    console.log(crumbs)
    return  <p>{crumbs}</p>
    
}

export default Mian